<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/layout/css/plugins/webuploader/webuploader.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/layout/css/demo/webuploader-demo.css">
    <style>
        .radio-inline input[type=radio] {
            margin-top: 4px
        }
    </style>
</head>

<body style="color:#333;padding:3px;">
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">渠道优惠政策详情</h2>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline">
        <table class="row-margin-top tab-content table-bordered text-center table" border="1">
            <tr>
                <td style="min-width: 160px;width: 160px">主题</td>
                <td class="text-left" colspan="3">{$data.title}</td>
                <td style="min-width: 160px;width: 160px">申请编号</td>
                <td style="min-width: 160px;width: 160px" class="text-left">{$data.sn}</td>
            <tr>
                <td style="min-width: 160px;width: 160px">申请人</td>
                <td class="text-left">{$data.sqr}</td>
                <td style="min-width: 160px;width: 160px">所属部门</td>
                <td class="text-left">{$data.ssbm}</td>
                <td style="min-width: 160px;width: 160px">申请时间</td>
                <td style="min-width: 160px;width: 160px" class="text-left">{$data.sqtime}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px">申请原因及其他说明</td>
                <td colspan="5">{$data.info}</td>
            </tr>
        </table>
        <div id="cxfa_wrap">
            {if isset($fa)}
            {volist name="fa" id="row" key="k"}
            <form action="" class="form-inline">
            <table class="table-bordered table t_table fxfa hideit" data-i="{$k}">
                <input type="hidden" name="fa_id" value="{$row.id}">
                <tr class="title_color">
                    <th style="min-width: 180px;width: 180px">促销方案{$k}</th>
                    <th colspan="3"></th>
                </tr>
                <tr>
                    <td>是否整单<span class="colorRed">*</span></td>
                    <td>
                        <label for=""><input type="radio" name="sfzd_{$k}" class="sfzd" value="1" {if $row.sfzd==1}checked{/if} disabled>是</label>
                        <label for=""><input type="radio" name="sfzd_{$k}" class="sfzd" value="0" {if $row.sfzd==0}checked{/if} disabled>否</label>
                    </td>
                    <td>
                        优惠时间段<span class="colorRed">*</span>
                    </td>
                    <td>
                        <div class="form-group">
                            <input type="text" class="form-control layer-date start"  style="display: inline-block;" name="start" value="{$row.start}" onclick="laydate({
        format: 'YYYY-MM-DD',
//        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
    })" disabled>
                        </div>
                        <div class="form-group">
                            至
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control layer-date end" style="display: inline-block;" name="end" value="{$row.end}" onclick="laydate({
        format: 'YYYY-MM-DD',
//        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
    })" disabled>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td style="min-width: 180px;width: 180px" class="text-right"><label for="">促销区域<span class="colorRed">*</span>：</label></td>
                    <td colspan="3">
                        <div style="float:left;">
                            <label class="radio-inline">
                                <input type="radio" name="area_{$k}" class="area" value="1" {if $row.area==1}checked{/if} disabled>分区
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="area_{$k}" class="area" value="2" {if $row.area==2}checked{/if} disabled>省份
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="area_{$k}" class="area" value="3" {if $row.area==3}checked{/if} disabled>城市
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="area_{$k}" class="area" value="4" {if $row.area==4}checked{/if} disabled>经销商
                            </label>
                        </div>
                        
                    </td>
                </tr>
                <tr>
                    <td style="min-width: 180px;width: 180px" class="text-right" >您选择的<span class="xuanding_name">{if $row.area==2}省份{elseif $row.area==3}城市{elseif $row.area==4}经销商{else}分区{/if}</span><span class="colorRed">*</span>：</td>
                    <td colspan="3">
                        <div class="duoxuan">

                            {volist name="row.area_id" id="row2"}
                            <span class="ren" data-id="{$row2.id}">{$row2.area_name}<input type="hidden" name="area_id[]" value="{$row2.id}"><span class="close" style="display: none;">×</span></span>
                            {/volist}

                        </div>
                    </td>
                </tr>
                <tr class="pro" {if $row.sfzd==1}style="display:none;"{/if}>
                    <td style="min-width: 180px;width: 180px" class="text-right"><label for="">促销产品<span
                            class="colorRed">*</span>：</label></td>
                    <td colspan="3">
                        <div style="float:left;">
                            <label class="radio-inline">
                                <input disabled type="radio" name="product_{$k}" class="product" id="" value="1" {if $row.product==1}checked{/if}>品牌
                            </label>
                            <label class="radio-inline">
                                <input disabled type="radio" name="product_{$k}" class="product" id="" value="2" {if $row.product==2}checked{/if}>品类
                            </label>
                            <label class="radio-inline">
                                <input disabled type="radio" name="product_{$k}" class="product" id="" value="3" {if $row.product==3}checked{/if}>系列
                            </label>
                            <label class="radio-inline">
                                <input disabled type="radio" name="product_{$k}" class="product" id="" value="4" {if $row.product==4}checked{/if}>SKU
                            </label>
                            <label class="radio-inline">
                                <input disabled type="radio" name="product_{$k}" class="product" id="" value="5" {if $row.product==5}checked{/if}>单品
                            </label>
                        </div>
                        
                    </td>
                </tr>
                <tr class="pro" {if $row.sfzd==1}style="display:none;"{/if}>
                    <td style="min-width: 180px;width: 180px" class="text-right" >
                        您选择的<span class="xuanding_product">{if $row.product==2}品类{elseif $row.product==3}系列{elseif $row.product==4}SKU{elseif $row.product==5}单品{else}品牌{/if}</span><span class="colorRed">*</span>:
                    </td>
                    <td class="xzd_brand" colspan="3">
                        <div class="duoxuan">
                            {volist name="row.product_id" id="row2"}
                            <span class="ren">{$row2.area_name}<input disabled type="hidden" name="product_id[]" value="{$row2.id}"><span class="close" style="display: none;">×</span></span>
                            {/volist}
                        </div>
                    </td>
                </tr>
                <tr>
                    <td style="min-width: 180px;width: 180px" class="text-center"><label for="">优惠类型</label><span class="colorRed">*</span>:</td>
                    <td colspan="3">
                        <label for="" class="zdyc" {if $row.sfzd==1}style="display:none;"{/if}><input disabled type="checkbox" name="yhlx[]"  value="3" class="chzk" {if in_array(3,$row.yhlx)}checked{/if}>出货折扣</label>
                        <label for="" class="zdyc" {if $row.sfzd==1}style="display:none;"{/if}><input disabled type="checkbox" name="yhlx[]"  value="4" class="agdjch" {if in_array(4,$row.yhlx)}checked{/if}>按固定价出货</label>
                        <label for="" class="zdyc" {if $row.sfzd==1}style="display:none;"{/if}><input disabled type="checkbox" name="yhlx[]"  value="5" class="shdz" {if in_array(5,$row.yhlx)}checked{/if}>随货搭赠</label>
                        <label for=""><input disabled type="checkbox" name="yhlx[]" value="1" class="shmj" {if in_array(1,$row.yhlx)}checked{/if}>随货满减</label>
                        <label for=""><input disabled type="checkbox" name="yhlx[]" value="2" class="chfd" {if in_array(2,$row.yhlx)}checked{/if}>出货返点</label>
                    </td>
                </tr>
                <tr class="chzk_tr" {if !in_array(3,$row.yhlx)}style="display: none;"{/if}>
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">出货折扣</label></td>
                    <td colspan="3">
                        单位：
                        <select name="chzk_unit" class="dw2" disabled>
                            <option value="元" {if $row.chzk_unit=='元'}selected{/if}>元</option>
                            <option value="发运单位"  {if $row.chzk_unit=='发运单位'}selected{/if}>发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="chzk_tr" {if !in_array(3,$row.yhlx)}style="display: none;"{/if}>
                    <td colspan="3">
                        <ul class="unlist">
                            {if $row.chzk_reach}
                            {volist name="row.chzk_reach" id="row2" key="k2"}
                            <li>满 <input disabled type="text" class="form-control" name="chzk_reach[]" value="{$row2}">（<span class="dw2_span">{$row.chzk_unit}</span>） <input disabled name="chzk_down[]" type="text" class="form-control" value="{$row.chzk_down[$k2-1]}">%OFF,&nbsp;&nbsp;限量<input disabled type="text" name="chzk_limit[]" class="form-control" value="{$row.chzk_limit[$k2-1]}">（<span class="dw2_span">{$row.chzk_unit}</span>）
                                {if count($row.chzk_reach)==$k2}
                                <a href="javascript:;" class="btn btn-default delit" style="display: none">-</a>
                                <a href="javascript:;" class="btn btn-default addit" style="display: none">+</a>
                                {elseif count($row.chzk_reach)>$k2&&$k2>1}
                                <a href="javascript:;" class="btn btn-default delit" style="display: none">-</a>
                                {elseif count($row.chzk_reach)==1}
                                <a href="javascript:;" class="btn btn-default addit" style="display: none">+</a>
                                {/if}
                            </li>
                            {/volist}
                            {else}
                            <li>满 <input disabled type="text" class="form-control" name="chzk_reach[]" value="">（<span class="dw2_span">元</span>） <input disabled name="chzk_down[]" type="text" class="form-control" value="">%OFF,&nbsp;&nbsp;限量<input disabled type="text" name="chzk_limit[]" class="form-control" value="">（<span class="dw2_span">元</span>）
                                <a href="javascript:;" class="btn btn-default addit" style="display: none">+</a></li>
                            {/if}
                        </ul>
                    </td>
                </tr>
                <tr class="agdjch_tr" {if !in_array(4,$row.yhlx)}style="display: none;"{/if}>
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">按固定价出货</label></td>
                    <td colspan="3">
                        单位：
                        <select disabled name="agdjch_unit" class="dw2">
                            <option value="元" {if $row.agdjch_unit=='元'}selected{/if} >元</option>
                            <option value="发运单位" {if $row.agdjch_unit=='发运单位'}selected{/if} >发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="agdjch_tr" {if !in_array(4,$row.yhlx)}style="display: none;"{/if}>
                    <td colspan="3">
                        <ul class="unlist">
                            {if $row.agdjch_reach}
                            {volist name="row.agdjch_reach" id="row2" key="k2"}
                            <li>满 <input disabled type="text" class="form-control" name="agdjch_reach[]" value="{$row2}">（<span class="dw2_span">{$row.agdjch_unit}</span>） 按<input disabled name="agdjch_down[]" type="text" class="form-control" value="{$row.agdjch_down[$k2-1]}">（元/发运单位）出货,&nbsp;&nbsp;限量<input disabled type="text" name="agdjch_limit[]" class="form-control" value="{$row.agdjch_limit[$k2-1]}">（<span class="dw2_span">{$row.agdjch_unit}</span>）<a href="javascript:;" class="btn btn-default addit2" style="display: none">+</a>
                                {if count($row.agdjch_reach)==$k2}
                                <a href="javascript:;" class="btn btn-default delit2" style="display: none">-</a>
                                <a href="javascript:;" class="btn btn-default addit2" style="display: none">+</a>
                                {elseif count($row.agdjch_reach)>$k2&&$k2>1}
                                <a href="javascript:;" class="btn btn-default delit2" style="display: none">-</a>
                                {elseif count($row.agdjch_reach)==1}
                                <a href="javascript:;" class="btn btn-default addit2" style="display: none">+</a>
                                {/if}
                            </li>
                            {/volist}
                            {else}
                            <li>满 <input disabled type="text" class="form-control" name="agdjch_reach[]" value="">（<span class="dw2_span">元</span>） 按<input disabled name="agdjch_down[]" type="text" class="form-control" value="">（元/发运单位）出货,&nbsp;&nbsp;限量<input disabled type="text" name="agdjch_limit[]" class="form-control" value="">（<span class="dw2_span">元</span>）<a href="javascript:;" class="btn btn-default addit2" style="display: none">+</a></li>
                            {/if}
                        </ul>
                    </td>
                </tr>
                <tr class="shdz_tr" {if !in_array(5,$row.yhlx)}style="display: none;"{/if}>
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">随货搭赠</label></td>
                    <td colspan="3">
                        单位：
                        <select disabled name="shdz_unit" class="dw2">
                            <option value="元" {if $row.shdz_unit=='元'}selected{/if}>元</option>
                            <option value="发运单位" {if $row.shdz_unit=='发运单位'}selected{/if}>发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="shdz_tr" {if !in_array(5,$row.yhlx)}style="display: none;"{/if}>
                    <td colspan="3">
                        <ul>
                            {if $row.shdz_reach}
                            {volist name="row.shdz_reach" id="row2" key="k2"}
                            <li>
                                满 <input disabled type="text" class="form-control" name="shdz_reach[]" value="{$row2}">（<span class="dw2_span">{$row.shdz_unit}</span>） 送赠品：<a href="javascript:;" class="shzhzp" style="display: none;"><input disabled type="hidden" name="shdz_gift[]"  value='{$row.shdz_gift[$k2-1]}'>设置赠品</a>,&nbsp;&nbsp;限量<input disabled type="text" class="form-control" name="shdz_limit[]" value="{$row.shdz_limit[$k2-1]}">（<span class="dw2_span">{$row.shdz_unit}</span>）
                                {if count($row.shdz_reach)==$k2}
                                <a href="javascript:;" class="btn btn-default delit3" style="display: none">-</a>
                                <a href="javascript:;" class="btn btn-default addit3" style="display: none">+</a>
                                {elseif count($row.shdz_reach)>$k2&&$k2>1}
                                <a href="javascript:;" class="btn btn-default delit3" style="display: none">-</a>
                                {elseif count($row.shdz_reach)==1}
                                <a href="javascript:;" class="btn btn-default addit3" style="display: none">+</a>
                                {/if}
                                <br>
                                <script>
                                    var ckstr="{$row.shdz_gift[$k2-1]}";
                                    if(ckstr!=""){
                                        ckstr = unescape(ckstr)
                                        ckstr = JSON.parse(ckstr)
                                    }
                                    for(var i=0;i<ckstr.length;i++)
                                    document.write('<font color="red">赠品预览:赠品：'+ckstr[i].product_title+';&nbsp;&nbsp;数量:'+ckstr[i].num+';&nbsp;&nbsp;单价:'+ckstr[i].price+'元/'+ckstr[i].unit+';&nbsp;&nbsp;小计:'+ckstr[i].total+'元</font><br>')
                                    
                                    </script>
                                
                            </li>
                            {/volist}
                            {else}
                            <li>
                                满 <input disabled type="text" class="form-control" name="shdz_reach[]" value="">（<span class="dw2_span">元</span>） 送赠品：<a href="javascript:;" class="shzhzp" style="display: none;"><input disabled type="hidden" name="shdz_gift[]"  value=''>设置赠品</a>,&nbsp;&nbsp;限量<input disabled type="text" class="form-control" name="shdz_limit[]" value="">（<span class="dw2_span">元</span>）<a href="javascript:;" class="btn btn-default addit3" style="display: none">+</a><br>
                                <font color="red">请设置赠品</font>
                            </li>
                            {/if}
                        </ul>
                    </td>
                </tr>
                <tr class="shmj_tr" {if !in_array(1,$row.yhlx)}style="display: none;"{/if}>
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">随货满减</label></td>
                    <td colspan="3">
                        单位：
                        <select name="shmj_unit" class="dw1" disabled>
                            <option value="元" <?php if($row['shmj_unit']=='元'): ?>selected<?php endif; ?> >元</option>
                            <option value="发运单位" <?php if($row['shmj_unit']=='发运单位'): ?>selected<?php endif; ?> >发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="shmj_tr" {if !in_array(1,$row.yhlx)}style="display: none;"{/if}>
                    <td colspan="3">
                        <ul>
                            {if $row.shmj_reach}
                            {volist name="row.shmj_reach" id="row2" key="k2"}
                            <li>
                                满 <input disabled type="text" class="form-control" name="shmj_reach[]" value="{$row2}">（<span class="dw1_span">{$row['shmj_unit']}</span>） 减 <input disabled type="text" class="form-control" name="shmj_down[]"  value="{$row.shmj_down[$k2-1]}">（<span class="dw1_span">{$row['shmj_unit']}</span>）,&nbsp;&nbsp;限量<input disabled type="text" class="form-control" name="shmj_limit[]"  value="{$row.shmj_limit[$k2-1]}">（<span class="dw1_span">{$row['shmj_unit']}</span>）
                                {if count($row.shmj_reach)==$k2}
                                <a href="javascript:;" class="btn btn-default delit4" style="display: none">-</a>
                                <a href="javascript:;" class="btn btn-default addit4" style="display: none">+</a>
                                {elseif count($row.shmj_reach)>$k2&&$k2>1}
                                <a href="javascript:;" class="btn btn-default delit4" style="display: none">-</a>
                                {elseif count($row.shmj_reach)==1}
                                <a href="javascript:;" class="btn btn-default addit4" style="display: none">+</a>
                                {/if}
                            </li>
                            {/volist}
                            {else}
                            <li>
                                满 <input disabled type="text" class="form-control" name="shmj_reach[]" value="">（<span class="dw1_span">元</span>） 减 <input disabled type="text" class="form-control" name="shmj_down[]"  value="">（<span class="dw1_span">元</span>）,&nbsp;&nbsp;限量<input disabled type="text" class="form-control" name="shmj_limit[]"  value="">（<span class="dw1_span">元</span>）<a href="javascript:;" class="btn btn-default addit4" style="display: none">+</a>
                            </li>
                            {/if}
                        </ul>
                    </td>
                </tr>
                <tr class="chfd_tr" {if !in_array(2,$row.yhlx)}style="display: none;"{/if}>
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">出货返点</label></td>
                    <td colspan="3">
                        单位：
                        <select disabled name="chfd_unit" class="dw2">
                            <option value="元" {if $row.chfd_unit=='元'}selected{/if} >元</option>
                            <option value="发运单位" {if $row.chfd_unit=='发运单位'}selected{/if} >发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="chfd_tr" {if !in_array(2,$row.yhlx)}style="display: none;"{/if}>
                    <td colspan="3">
                        <ul>
                            {if $row.chfd_reach}
                            {volist name="row.chfd_reach" id="row2" key="k2"}
                            <li>
                                满 <input disabled type="text" class="form-control" name="chfd_reach[]" value="{$row2}">（<span class="dw2_span">{$row.chfd_unit}</span>） 减 <input disabled type="text" class="form-control" name="chfd_down[]" value="{$row.chfd_down[$k2-1]}">%,&nbsp;&nbsp;限量<input disabled type="text" class="form-control" name="chfd_limit[]"  value="{$row.chfd_limit[$k2-1]}">（<span class="dw2_span">{$row.chfd_unit}</span>）
                                {if count($row.chfd_reach)==$k2}
                                <a href="javascript:;" class="btn btn-default delit5" style="display: none">-</a>
                                <a href="javascript:;" class="btn btn-default addit5" style="display: none">+</a>
                                {elseif count($row.chfd_reach)>$k2&&$k2>1}
                                <a href="javascript:;" class="btn btn-default delit5" style="display: none">-</a>
                                {elseif count($row.chfd_reach)==1}
                                <a href="javascript:;" class="btn btn-default addit5" style="display: none">+</a>
                                {/if}
                            </li>
                            {/volist}
                            {else}
                            <li>
                                满 <input disabled type="text" class="form-control" name="chfd_reach[]" value="">（<span class="dw2_span">元</span>） 减 <input disabled type="text" class="form-control" name="chfd_down[]" value="">%,&nbsp;&nbsp;限量<input disabled type="text" class="form-control" name="chfd_limit[]"  value="">（<span class="dw2_span">元</span>）<a href="javascript:;" class="btn btn-default addit5" style="display: none">+</a>
                            </li>
                            {/if}
                        </ul>

                    </td>
                </tr>
                <tr>
                    <td style="min-width: 180px;width: 180px" class="text-center"><label for="">方案说明</label></td>
                    <td colspan="3">
                        <div class="ibox float-e-margins" style="margin-bottom: 0">
                            <div class="ibox-content no-padding">
                                <div class="summernote summernote_disabled">
                                    {$row.brief}
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
            </form>
            {/volist}
            {else}
            <form action="" class="form-inline">
            <table class="table-bordered table t_table fxfa">
                <input type="hidden" name="fa_id">
                <tr class="title_color">
                    <th style="min-width: 180px;width: 180px">促销方案1</th>
                    <th colspan="3">
                        <a href="javascript:;" class="shch">删除</a>
                        <a href="javascript:;" class="bc">保存</a>
                        <a href="javascript:;" class="bj" style="display: none;">编辑</a>
                    </th>
                </tr>
                <tr>
                    <td>是否整单<span class="colorRed">*</span></td>
                    <td>
                        <label for=""><input type="radio" name="sfzd_1" class="sfzd" value="1">是</label>
                        <label for=""><input type="radio" name="sfzd_1" class="sfzd" value="0" checked>否</label>
                    </td>
                    <td>
                        优惠时间段<span class="colorRed">*</span>
                    </td>
                    <td>
                        <div class="form-group">
                            <input type="text" class="form-control layer-date start"  style="display: inline-block;" name="start" value="{if isset($data)}{$data.start}{/if}" onclick="laydate({
        format: 'YYYY-MM-DD',
//        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
    })">
                        </div>
                        <div class="form-group">
                            至
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control layer-date end" style="display: inline-block;" name="end" value="{if isset($data)}{$data.end}{/if}" onclick="laydate({
        format: 'YYYY-MM-DD',
//        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
    })">
                        </div>
                    </td>
                </tr>

                <tr>
                    <td style="min-width: 180px;width: 180px" class="text-right"><label for="">促销区域<span class="colorRed">*</span>：</label></td>
                    <td colspan="3">
                        <div style="float:left;">
                            <label class="radio-inline">
                                <input type="radio" name="area_1" class="area" value="1" {if (isset($data)&&$data.area==1)||!isset($data)}checked{/if}>分区
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="area_1" class="area" value="2" {if (isset($data)&&$data.area==2)}checked{/if}>省份
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="area_1" class="area" value="3" {if (isset($data)&&$data.area==3)}checked{/if}>城市
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="area_1" class="area" value="4" {if (isset($data)&&$data.area==4)}checked{/if}>经销商
                            </label>
                        </div>
                        <div style="width:300px;float:left;">
                            <div class="input-group">
                                <input class="area_id" type="text" placeholder="请输入关键字或空格查询"
                                       class="form-control" value="" style="min-width: 300px;width: 300px">
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <a href="javascript:;" style="float:left;margin-left:10px;" class="btn btn-primary select_area">选择</a>
                        <button class="btn-danger empty" type="button" style="float:left;margin-left:10px;" >清空</button>
                    </td>
                </tr>
                <tr>
                    <td style="min-width: 180px;width: 180px" class="text-right" id="selected_area">您选择的<span class="xuanding_name">分区</span><span class="colorRed">*</span>：</td>
                    <td id="xuanding" colspan="3">
                        <div class="duoxuan">

                        </div>
                    </td>
                </tr>
                <tr class="pro">
                    <td style="min-width: 180px;width: 180px" class="text-right"><label for="">促销产品<span
                            class="colorRed">*</span>：</label></td>
                    <td colspan="3">
                        <div style="float:left;">
                            <label class="radio-inline">
                                <input type="radio" name="product_1" class="product" id="" value="1" checked>品牌
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="product_1" class="product" id="" value="2" >品类
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="product_1" class="product" id="" value="3" >系列
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="product_1" class="product" id="" value="4" >SKU
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="product_1" class="product" id="" value="5" >单品
                            </label>
                        </div>
                        <div style="width:300px;float:left;">
                            <div class="input-group">
                                <input class="product_id" type="text" placeholder="请输入关键字或空格查询" class="form-control" value="" style="min-width: 300px;width: 300px">
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <a href="javascript:;" style="float:left;margin-left:10px;" class="btn btn-primary select_product">选择</a>
                        <button class="btn-danger empty" type="button" style="float:left;margin-left:10px;" >清空</button>
                    </td>
                </tr>
                <tr class="pro">
                    <td style="min-width: 180px;width: 180px" class="text-right" id="selected_product">您选择的<span class="xuanding_product">品牌</span><span class="colorRed">*</span>:</td>
                    <td class="xzd_brand" colspan="3">
                        <div class="duoxuan">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td style="min-width: 180px;width: 180px" class="text-center"><label for="">优惠类型</label><span class="colorRed">*</span>:</td>
                    <td colspan="3">
                        <label for="" class="zdyc"><input type="checkbox" name="yhlx[]" value="3" class="chzk">出货折扣</label>
                        <label for="" class="zdyc"><input type="checkbox" name="yhlx[]" value="4" class="agdjch">按固定价出货</label>
                        <label for="" class="zdyc"><input type="checkbox" name="yhlx[]" value="5" class="shdz">随货搭赠</label>
                        <label for=""><input type="checkbox" name="yhlx[]" value="1" class="shmj">随货满减</label>
                        <label for=""><input type="checkbox" name="yhlx[]" value="2" class="chfd">出货返点</label>
                    </td>
                </tr>
                <tr class="chzk_tr" style="display: none;">
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">出货折扣</label></td>
                    <td colspan="3">
                        单位：
                        <select name="chzk_unit" class="dw2">
                            <option value="元">元</option>
                            <option value="发运单位">发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="chzk_tr" style="display: none;">
                    <td colspan="3">
                        <ul>
                            <li>
                                满 <input type="text" class="form-control" name="chzk_reach[]">（<span class="dw2_span">元</span>） <input name="chzk_down[]" type="text" class="form-control">%OFF,&nbsp;&nbsp;限量<input type="text" name="chzk_limit[]" class="form-control">（<span class="dw2_span">元</span>）
                                <a href="javascript:;" class="btn btn-default addit">+</a>
                            </li>
                        </ul>

                    </td>
                </tr>
                <tr class="agdjch_tr" style="display: none;">
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">按固定价出货</label></td>
                    <td colspan="3">
                        单位：
                        <select name="agdjch_unit" class="dw2">
                            <option value="元">元</option>
                            <option value="发运单位">发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="agdjch_tr" style="display: none;">
                    <td colspan="3">
                        <ul>
                            <li>
                                满 <input type="text" class="form-control" name="agdjch_reach[]">（<span class="dw2_span">元</span>） 按<input name="agdjch_down[]" type="text" class="form-control">（元/发运单位）出货,&nbsp;&nbsp;限量<input type="text" name="agdjch_limit[]" class="form-control">（<span class="dw2_span">元</span>）<a href="javascript:;" class="btn btn-default addit2">+</a>
                            </li>
                        </ul>
                    </td>
                </tr>
                <tr class="shdz_tr" style="display: none;">
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">随货搭赠</label></td>
                    <td colspan="3">
                        单位：
                        <select name="shdz_unit" class="dw2">
                            <option value="元">元</option>
                            <option value="发运单位">发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="shdz_tr" style="display: none;">
                    <td colspan="3">
                        <ul>
                            <li>
                                满 <input type="text" class="form-control" name="shdz_reach[]">（<span class="dw2_span">元</span>） 送赠品：<a href="javascript:;" class="shzhzp"><input type="hidden" name="shdz_gift[]" >设置赠品</a>,&nbsp;&nbsp;限量<input type="text" class="form-control" name="shdz_limit[]">（<span class="dw2_span">元</span>）<a href="javascript:;" class="btn btn-default addit3">+</a><br>
                                <font color="red">请设置赠品</font>
                            </li>
                        </ul>
                    </td>
                </tr>
                <tr class="shmj_tr" style="display: none;">
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">随货满减</label></td>
                    <td colspan="3">
                        单位：
                        <select name="shmj_unit" class="dw1">
                            <option value="元">元</option>
                            <option value="发运单位">发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="shmj_tr" style="display: none;">
                    <td colspan="3">
                        <ul>
                            <li>
                                满 <input type="text" class="form-control" name="shmj_reach[]">（<span class="dw1_span">元</span>） 减 <input type="text" class="form-control" name="shmj_down[]">（<span class="dw1_span">元</span>）,&nbsp;&nbsp;限量<input type="text" class="form-control" name="shmj_limit[]">（<span class="dw1_span">元</span>）<a href="javascript:;" class="btn btn-default addit4">+</a>
                            </li>
                        </ul>

                    </td>
                </tr>
                <tr class="chfd_tr" style="display: none;">
                    <td style="min-width: 180px;width: 180px" class="text-center" rowspan="2"><label for="">出货返点</label></td>
                    <td colspan="3">
                        单位：
                        <select name="chfd_unit" class="dw2">
                            <option value="元">元</option>
                            <option value="发运单位">发运单位</option>
                        </select>
                    </td>
                </tr>
                <tr class="chfd_tr" style="display: none;">
                    <td colspan="3">
                        <ul>
                            <li>
                                满 <input type="text" class="form-control" name="chfd_reach[]">（<span class="dw2_span">元</span>） 减 <input type="text" class="form-control" name="chfd_down[]">%,&nbsp;&nbsp;限量<input type="text" class="form-control" name="chfd_limit[]">（<span class="dw2_span">元</span>）<a href="javascript:;" class="btn btn-default addit5">+</a>
                            </li>
                        </ul>

                    </td>
                </tr>
                <tr>
                    <td style="min-width: 180px;width: 180px" class="text-center"><label for="">方案说明</label></td>
                    <td colspan="3">
                        <div class="ibox float-e-margins" style="margin-bottom: 0">
                            <div class="ibox-content no-padding">
                                <div class="summernote">
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>

            </table>
            </form>
            {/if}
        </div>
      
        <table class="row-margin-top tab-content table-bordered text-center table" border="1">
            <tr>
                <td style="min-width: 160px;width: 160px">无政策销量(元)</td>
                <td class="text-left">{$data.saleNum}</td>
                <td style="min-width: 160px;width: 160px">政策预计销量(元)</td>
                <td class="text-left">{$data.policySaleNum}</td>
                <td style="min-width: 160px;width: 160px">销量增量(元)</td>
                <td class="text-left">{$data.saleInc}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px">预计搭赠产生的费用(元)</td>
                <td class="text-left">{$data.estiGiftCost}</td>
                <td style="min-width: 160px;width: 160px">预计费用率</td>
                <td class="text-left">{$data.estiCostRate}%</td>
                <td style="min-width: 160px;width: 160px">预计回报率</td>
                <td class="text-left">{$data.estiReturnRate}%</td>
            </tr>
        </table>
       <table class="table table-bordered text-left bud_hei">
            <tr class="info">
                <th class="text-left font-bold">审批意见</th>
            </tr>
            {volist name="logs" id="l"}
          <tr>
              <td>{$l.USERNAME} 审批动作：{$l.MEMO}；审批意见：{if $l.COMMENTS}{$l.COMMENTS}{else/}无{/if}(审批时间：{$l.ACTIONTIME})</td>
          </tr>
          
          {/volist}
      </table>
    </form>
    
</div>
{if $data.status==7}
<div class="applyImg font-bold">
    申报已生效
</div>
{/if}
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/common.js"></script>
</body>

</html>
